/**
 * 
 */
package com.hexacta.hrs.web.struts.actions.reports;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.hexacta.hrs.web.struts.actions.BaseReportAction;

/**
 * @author alayco
 * 
 */
public class EmployeeLeavesReportAction extends BaseReportAction {

	private static final long serialVersionUID = -1634479357703291206L;

	private Date lastWorkingDateFrom;
	private Date lastWorkingDateTo;

	@Override
	protected Map<String, Object> getReportFilters() {
		Map<String, Object> filters = new HashMap<String, Object>();

		if (lastWorkingDateFrom != null) {
			filters.put("lastWorkingDateFrom", lastWorkingDateFrom);
		}
		if (lastWorkingDateTo != null) {
			filters.put("lastWorkingDateTo", lastWorkingDateTo);
		}
		return filters;
	}

	public Date getLastWorkingDateFrom() {
		return lastWorkingDateFrom;
	}

	public void setLastWorkingDateFrom(Date lastWorkingDateFrom) {
		this.lastWorkingDateFrom = lastWorkingDateFrom;
	}

	public Date getLastWorkingDateTo() {
		return lastWorkingDateTo;
	}

	public void setLastWorkingDateTo(Date lastWorkingDateTo) {
		this.lastWorkingDateTo = lastWorkingDateTo;
	}

}
